package com.zh.core.dao;

import com.zh.core.entity.Customer;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by zhaohui on 2019/8/11
 * Description:
 */
public interface CustomerDao {

    /**
     * 查询所有顾客
     * @return
     */
    List<Customer> queryAllCustomer();

    /**
     * 分页查询所有顾客
     * @return
     */
    List<Customer> queryCustomerWithPage(@Param("offset") int offset, @Param("limit")int limit);

    /**
     * 查询所有顾客的数量
     * @return
     */
    int queryAllCustomerNum();

}
